/* ----------------------------------------------------------------------------
 * Copyright (c) 2008 by Airbus SAS. All rights reserved. All intellectual
 * property rights in and/or in the computer program and its related
 * documentation and technology are the sole Airbus' property. This computer
 * program is under Airbus copyright and cannot be in whole or in part
 * reproduced, sublicensed, leased, sold or used in any form or by any means,
 * including without limitation graphic, electronic, mechanical, photocopying,
 * recording, taping or information storage and retrieval systems without Airbus
 * prior written consent. The downloading, exporting or reexporting of this
 * computer program or any related documentation or technology is subject to any
 * export rules, including US regulations.
 * ----------------------------------------------------------------------------
 */

package com.azzaou.view;

import java.io.Serializable;

import org.apache.commons.lang.StringUtils;

/**
 * LoginView
 */
public class LoginView implements Serializable
{

  /**
   * serialVersionUID
   */
  private static final long serialVersionUID = 3085530015500482880L;

  /**
   * id
   */
  private long id;

  /**
   * login
   */
  private String login;

  /**
   * password
   */
  private String password;

  /**
   * deleted
   */
  private Integer deleted;

  /**
   * alertMsg
   */
  private String alertMsg;

  /**
   * alertValue
   */
  private String alertValue;

  /**
   * alertStyle
   */
  private String alertStyle;
  
  /**
   * alertStyle
   */
  private String help;
  
  /**
   * displayIdentification
   */
  private String displayIdentification;

  /**
   * session
   */
  private String session;
  /**
	 * LoginView
	 */
  public LoginView()
  {
    super();
  }

  /**
   * @return the id
   */
  public long getId()
  {
    return id;
  }

  /**
   * @param id
   *          the id to set
   */
  public void setId(long id)
  {
    this.id = id;
  }


  /**
   * @return the login
   */
  public String getLogin()
  {
    return login;
  }

  /**
   * @param login
   *          the login to set
   */
  public void setLogin(String login)
  {
    this.login = login;
  }

  /**
   * @return the password
   */
  public String getPassword()
  {
    return password;
  }

  /**
   * @param password
   *          the password to set
   */
  public void setPassword(String password)
  {
    this.password = password;
  }


  public void clear()
  {
    setLogin("");
    setPassword("");
  }

  /**
   * @return the deleted
   */
  public Integer getDeleted()
  {
    return deleted;
  }

  /**
   * @param deleted
   *          the deleted to set
   */
  public void setDeleted(Integer deleted)
  {
    this.deleted = deleted;
  }

  /**
   * @return the alertMsg
   */
  public String getAlertMsg()
  {
    return alertMsg;
  }

  /**
   * @param alertMsg
   *          the alertMsg to set
   */
  public void setAlertMsg(String alertMsg)
  {
    this.alertMsg = alertMsg;
  }

  /**
   * @return the alertValue
   */
  public String getAlertValue()
  {
    return alertValue;
  }

  /**
   * @param alertValue
   *          the alertValue to set
   */
  public void setAlertValue(String alertValue)
  {
    this.alertValue = alertValue;
  }

  /**
   * @return the alertStyle
   */
  public String getAlertStyle()
  {
    return alertStyle;
  }

  /**
   * @param alertStyle
   *          the alertStyle to set
   */
  public void setAlertStyle(String alertStyle)
  {
    this.alertStyle = alertStyle;
  }

  /**
   * getHelp
   *
   * @return help 
   *                          : String
   */
  public String getHelp()
  {
    return help;
  }

  /**
   * setHelp
   *
   * @param help 
   *                : String
   */
  public void setHelp(String help)
  {
    this.help = help;
  }

  /**
   * @return displayIdentification
   */
  public String getDisplayIdentification()
  {
    displayIdentification = "";
    if(StringUtils.isBlank(login))
    {
      displayIdentification = "none;";
    }
    return displayIdentification;
  }

  /**
   * @param displayIdentification displayIdentification 
   */
  public void setDisplayIdentification(String displayIdentification)
  {
    this.displayIdentification = displayIdentification;
  }

  /**
   * @return session
   */
  public String getSession()
  {
    return session;
  }

  /**
   * @param session session 
   */
  public void setSession(String session)
  {
    this.session = session;
  }
  
}
